package no.cicero.testframework.reporting;

import no.cicero.testframework.execution.exceptions.ExecutionException;
import no.cicero.testframework.model.testcase.ClientObject;
import no.cicero.testframework.model.testcase.Step;

public class ReportingStep {
    private Step step;
    private ClientObject response;
    private Boolean responsePositive;
    private ExecutionException failure;
    
    public ReportingStep(Step step) {
        this.step = step;
    }
     
    public void setNegativeResponse(ClientObject response) {
        this.response = response;
        this.responsePositive = false;
    }

    public void setPositiveResponse(ClientObject response) {
        this.response = response;
        this.responsePositive = true;
    }

    public ClientObject getResponse() { return response; }
    public Step getStep() { return step;}
    public Boolean getResponsePositive() { return responsePositive;}
    public ExecutionException getFailure() {return failure;}
    public void setFailure(ExecutionException failure) {this.failure = failure;}
}
